package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper

public interface OrderDao {
    /**根据预约id查询预约信息*/
    Order findByOrderId(@Param("id") Integer id);
    /**根据*/
    Member findByMemberId(@Param("id") Integer id);

    Long selectCountByCOndition(@Param("memberId") Integer memberId,@Param("setmealId") Integer setmealId,@Param("orderDate") Date orderDate);

    void addOrder(@Param("order") Order order);

    Integer getTodayOrderNumber();

    Integer getThisWeekOrderNumber();

    Integer getThisMonthOrderNumber();

    Integer getAllOrdersCount();
}
